package exam.huawei;

import java.util.Scanner;

/**
 * @author chenhong
 * @version 1.0
 * @description TODO
 * @date 2023/4/8 14:18
 */
public class HJ3 {
}

class Main3 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);

        int n = in.nextInt();
        int[] map = new int[501];
        for (int i = 0; i < n; i++) {
            map[in.nextInt()] = 1;
        }
        for (int i = 1; i < map.length; i++) {
            if(map[i] != 0)
                System.out.println(i);
        }
    }
}